package com.itheima.string;

public class Demo03 {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        StringBuilder sb2 = sb.append("红色");
        System.out.println(sb==sb2);
        sb.append("蓝色").append("绿色");
        System.out.println(sb);
        sb.reverse();
        System.out.println(sb);
        System.out.println(sb.length());
        String s = sb.toString();
        System.out.println(s);
    }

}
